<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<!--4、将字符串数组用|或其他符号分隔（[‘a’,’b’]——   a|b）-->
	<body>
		<script>
		     var arr=['a','b','c'];
			 alert(arr.join('|'));
		</script>
	</body>
</html>
